package com.etc.library.controller;

import com.etc.library.service.CautionService;
import com.etc.library.util.ResultBody;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/caution")
public class CautionController {

    @Autowired
    private CautionService cautionService;

    @GetMapping("/list")
    public ResultBody list(){
        return ResultBody.success(cautionService.list());
    }
}
